package jwr.basic;

public class ex {

	public static void main(String[] args) {
		int arr[] = new int[3];
		for(int i= 0 ; i<arr.length;i++){
			System.out.println(arr[i]);
			arr[i] = i;
			if(i==arr.length-1){
				i=-1;
			}
			
			
		}
		/*System.out.println(arr.length);
		int i = 0;
		do{
			arr[i] = i;
			System.out.println(arr[i]);
			if(i==(arr.length-1)){
				i=-1;
			}
			
			i++;
		}while(i<arr.length);*/
	}

}
